
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>（三）代码格式 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="OOP规范.html" />
    
    
    <link rel="prev" href="常量定义.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    一、编程规约
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="命名风格.html">
            
                <a href="命名风格.html">
            
                    
                    （一）命名风格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="常量定义.html">
            
                <a href="常量定义.html">
            
                    
                    （二）常量定义
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.3" data-path="代码格式.html">
            
                <a href="代码格式.html">
            
                    
                    （三）代码格式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="OOP规范.html">
            
                <a href="OOP规范.html">
            
                    
                    （四）OOP规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="集合处理.html">
            
                <a href="集合处理.html">
            
                    
                    （五）集合处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="并发处理.html">
            
                <a href="并发处理.html">
            
                    
                    （六）并发处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="控制语句.html">
            
                <a href="控制语句.html">
            
                    
                    （七）控制语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="注释规约.html">
            
                <a href="注释规约.html">
            
                    
                    （八）注释规约
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    二、异常日志
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../异常日志/异常处理.html">
            
                <a href="../异常日志/异常处理.html">
            
                    
                    （一）异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../异常日志/日志规约.html">
            
                <a href="../异常日志/日志规约.html">
            
                    
                    （二）日志规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../异常日志/其他.html">
            
                <a href="../异常日志/其他.html">
            
                    
                    （三）其他
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../单元测试.html">
            
                <a href="../单元测试.html">
            
                    
                    三、单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../安全规约.html">
            
                <a href="../安全规约.html">
            
                    
                    四、安全规约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    五、MySQL数据库
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../MySQL数据库/建表规约.html">
            
                <a href="../MySQL数据库/建表规约.html">
            
                    
                    （一）建表规约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../MySQL数据库/索引规约.html">
            
                <a href="../MySQL数据库/索引规约.html">
            
                    
                    （二）索引规约
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../MySQL数据库/SQL语句.html">
            
                <a href="../MySQL数据库/SQL语句.html">
            
                    
                    （三）SQL语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../MySQL数据库/ORM映射.html">
            
                <a href="../MySQL数据库/ORM映射.html">
            
                    
                    （四）ORM映射
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    六、工程结构
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../工程结构/应用分层.html">
            
                <a href="../工程结构/应用分层.html">
            
                    
                    （一）应用分层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../工程结构/二方库依赖.html">
            
                <a href="../工程结构/二方库依赖.html">
            
                    
                    （二）二方库依赖
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../工程结构/服务器.html">
            
                <a href="../工程结构/服务器.html">
            
                    
                    （三）服务器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../版本历史.html">
            
                <a href="../版本历史.html">
            
                    
                    附1：版本历史 
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../本手册专有名词.html">
            
                <a href="../本手册专有名词.html">
            
                    
                    附2：本手册专有名词 
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >（三）代码格式</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#xFF08;&#x4E09;&#xFF09;&#x4EE3;&#x7801;&#x683C;&#x5F0F;">&#xFF08;&#x4E09;&#xFF09;&#x4EE3;&#x7801;&#x683C;&#x5F0F;</h2>
<ol>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x5927;&#x62EC;&#x53F7;&#x7684;&#x4F7F;&#x7528;&#x7EA6;&#x5B9A;&#x3002;&#x5982;&#x679C;&#x662F;&#x5927;&#x62EC;&#x53F7;&#x5185;&#x4E3A;&#x7A7A;&#xFF0C;&#x5219;&#x7B80;&#x6D01;&#x5730;&#x5199;&#x6210;<code>{}</code>&#x5373;&#x53EF;&#xFF0C;&#x4E0D;&#x9700;&#x8981;&#x6362;&#x884C;&#xFF1B;&#x5982;&#x679C;&#x662F;&#x975E;&#x7A7A;&#x4EE3;&#x7801;&#x5757;&#x5219;&#xFF1A;
<br>1&#xFF09; &#x5DE6;&#x5927;&#x62EC;&#x53F7;&#x524D;&#x4E0D;&#x6362;&#x884C;&#x3002;
<br>2&#xFF09; &#x5DE6;&#x5927;&#x62EC;&#x53F7;&#x540E;&#x6362;&#x884C;&#x3002;
<br>3&#xFF09; &#x53F3;&#x5927;&#x62EC;&#x53F7;&#x524D;&#x6362;&#x884C;&#x3002;
<br>4&#xFF09; &#x53F3;&#x5927;&#x62EC;&#x53F7;&#x540E;&#x8FD8;&#x6709;else&#x7B49;&#x4EE3;&#x7801;&#x5219;&#x4E0D;&#x6362;&#x884C;&#xFF1B;&#x8868;&#x793A;&#x7EC8;&#x6B62;&#x7684;&#x53F3;&#x5927;&#x62EC;&#x53F7;&#x540E;&#x5FC5;&#x987B;&#x6362;&#x884C;&#x3002; </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011; &#x5DE6;&#x5C0F;&#x62EC;&#x53F7;&#x548C;&#x5B57;&#x7B26;&#x4E4B;&#x95F4;&#x4E0D;&#x51FA;&#x73B0;&#x7A7A;&#x683C;&#xFF1B;&#x540C;&#x6837;&#xFF0C;&#x53F3;&#x5C0F;&#x62EC;&#x53F7;&#x548C;&#x5B57;&#x7B26;&#x4E4B;&#x95F4;&#x4E5F;&#x4E0D;&#x51FA;&#x73B0;&#x7A7A;&#x683C;&#x3002;&#x8BE6;&#x89C1;&#x7B2C;5&#x6761;&#x4E0B;&#x65B9;&#x6B63;&#x4F8B;&#x63D0;&#x793A;&#x3002;
<br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;<pre class="language-"><code>if (&#x7A7A;&#x683C;a == b&#x7A7A;&#x683C;)
</code></pre></li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;if/for/while/switch/do&#x7B49;&#x4FDD;&#x7559;&#x5B57;&#x4E0E;&#x62EC;&#x53F7;&#x4E4B;&#x95F4;&#x90FD;&#x5FC5;&#x987B;&#x52A0;&#x7A7A;&#x683C;&#x3002; </li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x4EFB;&#x4F55;&#x4E8C;&#x76EE;&#x3001;&#x4E09;&#x76EE;&#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x5DE6;&#x53F3;&#x4E24;&#x8FB9;&#x90FD;&#x9700;&#x8981;&#x52A0;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;&#x3002; 
<br><span style="color:orange">&#x8BF4;&#x660E;</span>&#xFF1A;&#x8FD0;&#x7B97;&#x7B26;&#x5305;&#x62EC;&#x8D4B;&#x503C;&#x8FD0;&#x7B97;&#x7B26;=&#x3001;&#x903B;&#x8F91;&#x8FD0;&#x7B97;&#x7B26;&amp;&amp;&#x3001;&#x52A0;&#x51CF;&#x4E58;&#x9664;&#x7B26;&#x53F7;&#x7B49;&#x3002;</li>
<li><p>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x91C7;&#x7528;4&#x4E2A;&#x7A7A;&#x683C;&#x7F29;&#x8FDB;&#xFF0C;&#x7981;&#x6B62;&#x4F7F;&#x7528;tab&#x5B57;&#x7B26;&#x3002; 
<br><span style="color:orange">&#x8BF4;&#x660E;</span>&#xFF1A;
 &#x5982;&#x679C;&#x4F7F;&#x7528;tab&#x7F29;&#x8FDB;&#xFF0C;&#x5FC5;&#x987B;&#x8BBE;&#x7F6E;1&#x4E2A;tab&#x4E3A;4&#x4E2A;&#x7A7A;&#x683C;&#x3002;IDEA&#x8BBE;&#x7F6E;tab&#x4E3A;4&#x4E2A;&#x7A7A;&#x683C;&#x65F6;&#xFF0C;&#x8BF7;&#x52FF;&#x52FE;&#x9009;<code>Use tab character</code>&#xFF1B;&#x800C;&#x5728;eclipse&#x4E2D;&#xFF0C;&#x5FC5;&#x987B;&#x52FE;&#x9009;<code>insert spaces for tabs</code>&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A; &#xFF08;&#x6D89;&#x53CA;1-5&#x70B9;&#xFF09;</p>
<pre class="language-"><code>   public static void main(String[] args) {
       // &#x7F29;&#x8FDB;4&#x4E2A;&#x7A7A;&#x683C;
       String say = &quot;hello&quot;;
       // &#x8FD0;&#x7B97;&#x7B26;&#x7684;&#x5DE6;&#x53F3;&#x5FC5;&#x987B;&#x6709;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;
       int flag = 0;
       // &#x5173;&#x952E;&#x8BCD;if&#x4E0E;&#x62EC;&#x53F7;&#x4E4B;&#x95F4;&#x5FC5;&#x987B;&#x6709;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;&#xFF0C;&#x62EC;&#x53F7;&#x5185;&#x7684;f&#x4E0E;&#x5DE6;&#x62EC;&#x53F7;&#xFF0C;0&#x4E0E;&#x53F3;&#x62EC;&#x53F7;&#x4E0D;&#x9700;&#x8981;&#x7A7A;&#x683C;
       if (flag == 0) {
           System.out.println(say);
       }
       // &#x5DE6;&#x5927;&#x62EC;&#x53F7;&#x524D;&#x52A0;&#x7A7A;&#x683C;&#x4E14;&#x4E0D;&#x6362;&#x884C;&#xFF1B;&#x5DE6;&#x5927;&#x62EC;&#x53F7;&#x540E;&#x6362;&#x884C;
       if (flag == 1) {
           System.out.println(&quot;world&quot;);
           // &#x53F3;&#x5927;&#x62EC;&#x53F7;&#x524D;&#x6362;&#x884C;&#xFF0C;&#x53F3;&#x5927;&#x62EC;&#x53F7;&#x540E;&#x6709;else&#xFF0C;&#x4E0D;&#x7528;&#x6362;&#x884C;
       } else {
           System.out.println(&quot;ok&quot;);
           // &#x5728;&#x53F3;&#x5927;&#x62EC;&#x53F7;&#x540E;&#x76F4;&#x63A5;&#x7ED3;&#x675F;&#xFF0C;&#x5219;&#x5FC5;&#x987B;&#x6362;&#x884C;
       }
   }
</code></pre></li>
<li><p>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x6CE8;&#x91CA;&#x7684;&#x53CC;&#x659C;&#x7EBF;&#x4E0E;&#x6CE8;&#x91CA;&#x5185;&#x5BB9;&#x4E4B;&#x95F4;&#x6709;&#x4E14;&#x4EC5;&#x6709;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;</p>
<pre class="language-"><code>// &#x8FD9;&#x662F;&#x793A;&#x4F8B;&#x6CE8;&#x91CA;&#xFF0C;&#x8BF7;&#x6CE8;&#x610F;&#x5728;&#x53CC;&#x659C;&#x7EBF;&#x4E4B;&#x540E;&#x6709;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;  
String ygb = new String();
</code></pre></li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x5355;&#x884C;&#x5B57;&#x7B26;&#x6570;&#x9650;&#x5236;&#x4E0D;&#x8D85;&#x8FC7;120&#x4E2A;&#xFF0C;&#x8D85;&#x51FA;&#x9700;&#x8981;&#x6362;&#x884C;&#xFF0C;&#x6362;&#x884C;&#x65F6;&#x9075;&#x5FAA;&#x5982;&#x4E0B;&#x539F;&#x5219;&#xFF1A;
<br>1&#xFF09;&#x7B2C;&#x4E8C;&#x884C;&#x76F8;&#x5BF9;&#x7B2C;&#x4E00;&#x884C;&#x7F29;&#x8FDB;4&#x4E2A;&#x7A7A;&#x683C;&#xFF0C;&#x4ECE;&#x7B2C;&#x4E09;&#x884C;&#x5F00;&#x59CB;&#xFF0C;&#x4E0D;&#x518D;&#x7EE7;&#x7EED;&#x7F29;&#x8FDB;&#xFF0C;&#x53C2;&#x8003;&#x793A;&#x4F8B;&#x3002;
<br>2&#xFF09;&#x8FD0;&#x7B97;&#x7B26;&#x4E0E;&#x4E0B;&#x6587;&#x4E00;&#x8D77;&#x6362;&#x884C;&#x3002;
<br>3&#xFF09;&#x65B9;&#x6CD5;&#x8C03;&#x7528;&#x7684;&#x70B9;&#x7B26;&#x53F7;&#x4E0E;&#x4E0B;&#x6587;&#x4E00;&#x8D77;&#x6362;&#x884C;&#x3002;
<br>4&#xFF09; &#x65B9;&#x6CD5;&#x8C03;&#x7528;&#x65F6;&#xFF0C;&#x591A;&#x4E2A;&#x53C2;&#x6570;&#xFF0C;&#x9700;&#x8981;&#x6362;&#x884C;&#x65F6;&#xFF0C;&#x5728;&#x9017;&#x53F7;&#x540E;&#x8FDB;&#x884C;&#x3002;
<br>5&#xFF09; &#x5728;&#x62EC;&#x53F7;&#x524D;&#x4E0D;&#x8981;&#x6362;&#x884C;&#xFF0C;&#x89C1;&#x53CD;&#x4F8B;&#x3002;
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;<pre class="language-"><code>StringBuffer sb = new StringBuffer();
  // &#x8D85;&#x8FC7;120&#x4E2A;&#x5B57;&#x7B26;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x6362;&#x884C;&#x7F29;&#x8FDB;4&#x4E2A;&#x7A7A;&#x683C;&#xFF0C;&#x70B9;&#x53F7;&#x548C;&#x65B9;&#x6CD5;&#x540D;&#x79F0;&#x4E00;&#x8D77;&#x6362;&#x884C;
 sb.append(&quot;zi&quot;).append(&quot;xin&quot;)...
                .append(&quot;huang&quot;)...
                .append(&quot;huang&quot;)...
                .append(&quot;huang&quot;);
</code></pre><br><span style="color:red">&#x53CD;&#x4F8B;</span>&#xFF1A;<pre class="language-"><code>StringBuffer sb = new StringBuffer();  
// &#x8D85;&#x8FC7;120&#x4E2A;&#x5B57;&#x7B26;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x4E0D;&#x8981;&#x5728;&#x62EC;&#x53F7;&#x524D;&#x6362;&#x884C;  
sb.append(&quot;zi&quot;).append(&quot;xin&quot;)...append      
(&quot;huang&quot;);    
// &#x53C2;&#x6570;&#x5F88;&#x591A;&#x7684;&#x65B9;&#x6CD5;&#x8C03;&#x7528;&#x53EF;&#x80FD;&#x8D85;&#x8FC7;120&#x4E2A;&#x5B57;&#x7B26;&#xFF0C;&#x4E0D;&#x8981;&#x5728;&#x9017;&#x53F7;&#x524D;&#x6362;&#x884C;  
method(args1, args2, args3, ... 
, argsX);
</code></pre></li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;&#x65B9;&#x6CD5;&#x53C2;&#x6570;&#x5728;&#x5B9A;&#x4E49;&#x548C;&#x4F20;&#x5165;&#x65F6;&#xFF0C;&#x591A;&#x4E2A;&#x53C2;&#x6570;&#x9017;&#x53F7;&#x540E;&#x8FB9;&#x5FC5;&#x987B;&#x52A0;&#x7A7A;&#x683C;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A;&#x4E0B;&#x4F8B;&#x4E2D;&#x5B9E;&#x53C2;&#x7684;&quot;a&quot;,&#x540E;&#x8FB9;&#x5FC5;&#x987B;&#x8981;&#x6709;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;&#x3002; <pre class="language-"><code>method(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;);
</code></pre></li>
<li>&#x3010;&#x5F3A;&#x5236;&#x3011;IDE&#x7684;text file encoding&#x8BBE;&#x7F6E;&#x4E3A;UTF-8; IDE&#x4E2D;&#x6587;&#x4EF6;&#x7684;&#x6362;&#x884C;&#x7B26;&#x4F7F;&#x7528;Unix&#x683C;&#x5F0F;&#xFF0C;&#x4E0D;&#x8981;&#x4F7F;&#x7528;Windows&#x683C;&#x5F0F;&#x3002; </li>
<li>&#x3010;&#x63A8;&#x8350;&#x3011;&#x6CA1;&#x6709;&#x5FC5;&#x8981;&#x589E;&#x52A0;&#x82E5;&#x5E72;&#x7A7A;&#x683C;&#x6765;&#x4F7F;&#x67D0;&#x4E00;&#x884C;&#x7684;&#x5B57;&#x7B26;&#x4E0E;&#x4E0A;&#x4E00;&#x884C;&#x5BF9;&#x5E94;&#x4F4D;&#x7F6E;&#x7684;&#x5B57;&#x7B26;&#x5BF9;&#x9F50;&#x3002; 
<br><span style="color:green">&#x6B63;&#x4F8B;</span>&#xFF1A; <pre class="language-"><code>int a = 3;  
long b = 4L;  
float c = 5F;  
StringBuffer sb = new StringBuffer();
</code></pre><span style="color:orange">&#x8BF4;&#x660E;</span>&#xFF1A;&#x589E;&#x52A0;sb&#x8FD9;&#x4E2A;&#x53D8;&#x91CF;&#xFF0C;&#x5982;&#x679C;&#x9700;&#x8981;&#x5BF9;&#x9F50;&#xFF0C;&#x5219;&#x7ED9;a&#x3001;b&#x3001;c&#x90FD;&#x8981;&#x589E;&#x52A0;&#x51E0;&#x4E2A;&#x7A7A;&#x683C;&#xFF0C;&#x5728;&#x53D8;&#x91CF;&#x6BD4;&#x8F83;&#x591A;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x662F;&#x975E;&#x5E38;&#x7D2F;&#x8D58;&#x7684;&#x4E8B;&#x60C5;&#x3002; </li>
<li>&#x3010;&#x63A8;&#x8350;&#x3011;&#x4E0D;&#x540C;&#x903B;&#x8F91;&#x3001;&#x4E0D;&#x540C;&#x8BED;&#x4E49;&#x3001;&#x4E0D;&#x540C;&#x4E1A;&#x52A1;&#x7684;&#x4EE3;&#x7801;&#x4E4B;&#x95F4;&#x63D2;&#x5165;&#x4E00;&#x4E2A;&#x7A7A;&#x884C;&#x5206;&#x9694;&#x5F00;&#x6765;&#x4EE5;&#x63D0;&#x5347;&#x53EF;&#x8BFB;&#x6027;&#x3002; 
<br><span style="color:orange">&#x8BF4;&#x660E;</span>&#xFF1A;&#x6CA1;&#x6709;&#x5FC5;&#x8981;&#x63D2;&#x5165;<strong>&#x591A;&#x4E2A;&#x7A7A;&#x884C;</strong>&#x8FDB;&#x884C;&#x9694;&#x5F00;&#x3002; </li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="常量定义.html" class="navigation navigation-prev " aria-label="Previous page: （二）常量定义">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="OOP规范.html" class="navigation navigation-next " aria-label="Next page: （四）OOP规范">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"（三）代码格式","level":"1.2.3","depth":2,"next":{"title":"（四）OOP规范","level":"1.2.4","depth":2,"path":"编程规约/OOP规范.md","ref":"编程规约/OOP规范.md","articles":[]},"previous":{"title":"（二）常量定义","level":"1.2.2","depth":2,"path":"编程规约/常量定义.md","ref":"编程规约/常量定义.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["book-summary-scroll-position-saver","github","prism","-sharing","-highlight"],"pluginsConfig":{"github":{"url":"https://github.com/alibaba/p3c"},"book-summary-scroll-position-saver":{},"prism":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css"}},"file":{"path":"编程规约/代码格式.md","mtime":"2022-05-11T03:50:37.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-11-12T09:10:13.396Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-book-summary-scroll-position-saver/book-summary-scroll-position-saver.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

